// JavaScript Document
var interval;
var time;

function Slide(){
	interval = setInterval(function(){
		if ($("#navigation").find("a.on").next().hasClass("page")){
			$("#navigation").find("a.on").next().click();			
		} else {
			$("#navigation").find("a:first").click();						
		}
	}, 5000);
}

$(document).ready(function(){
	Slide();
	$("#navigation .page, .slide").live('click', function(){
		clearInterval(interval);
		time = setTimeout(function(){
			Slide();
		}, 10);
	});
});